CC = gcc
CFLAGS = -Wall -ansi -pedantic -g
OBJS = wav_codec.o demo.o

all: wav_demo

wav_demo: $(OBJS)
	$(CC) $(CFLAGS) -o $@ $(OBJS)

wav_codec.o: wav_codec.c wav_codec.h
	$(CC) $(CFLAGS) -c $<

demo.o: demo.c wav_codec.h
	$(CC) $(CFLAGS) -c $<

clean:
	rm -f *.o wav_demo 